forum

home / developersection / forums / how to validate if a datetime field is not null / empty?

How to validate if a DateTime field is not null / empty?

Anonymous User 1949 10-Feb-2015

I found something like:

if (!String.IsNullOrEmpty(u.nome))

This code simply check if the name field of the u object is not an empty/null string.

Ok this is very clear for me, but what can I do to check it if a field is not a string but is DateTime object?


c# c# 
Updated on 10-Feb-2015

I am a content writter !

Can you answer this question?

Answer

1 Answers

Liked By